package dictionary.stemming;


import org.tartarus.snowball.ext.englishStemmer;

public class SnowballEnglishStemmer implements Stemmer {
	
	private englishStemmer es;

	public SnowballEnglishStemmer() {
		es = new englishStemmer();
	}

	@Override
	public String stem(String word) {
		synchronized (this) {
			es.setCurrent(word);
			es.stem();
			return es.getCurrent();
		}
	}

}
